<template>
    <div class="common-layout">
      <el-container>
        <el-header>Header</el-header>
        <el-container>
          <el-aside width="200px">
            <el-row class="tac">
              <el-col :span="24">
                <el-menu
                    active-text-color="#ffd04b"
                    background-color="#545c64"
                    class="el-menu-vertical-demo"
                    default-active="2"
                    text-color="#fff"
                    router
                >
                  <el-sub-menu index="1">
                    <template #title>
                      <el-icon><location /></el-icon>
                      <span>后台管理</span>
                    </template>
                    <el-menu-item-group>
                      <el-menu-item index="/user">用户管理</el-menu-item>
                      <el-menu-item index="/role">角色管理</el-menu-item>
                      <el-menu-item index="/permission">权限管理</el-menu-item>
                    </el-menu-item-group>
                  </el-sub-menu>
                </el-menu>
              </el-col>
            </el-row>
          </el-aside>
          <el-main>
            <RouterView/>
          </el-main>
        </el-container>
      </el-container>
    </div>
  </template>

<script setup>
import {
  Document,
  Menu as IconMenu,
  Location,
  Setting,
} from '@element-plus/icons-vue'
</script>
<style>
.el-header, .el-footer {
  background-color: #B3C0D1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;
  /*line-height: 200px;*/
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  /*text-align: center;*/
  /*line-height: 160px;*/
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  /*line-height: 260px;*/
}

.el-container:nth-child(7) .el-aside {
  /*line-height: 320px;*/
}
</style>